package com.service.edu.service;

import com.service.edu.pojo.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.service.edu.pojo.vo.CourseFrontVo;
import com.service.edu.pojo.vo.CourseInfoVo;
import com.service.edu.pojo.vo.CourseQuery;
import com.service.utils.ResultVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-09-28
 */
public interface CourseService extends IService<Course> {

    String saveCourse(CourseInfoVo courseInfoVo);

    String updateCourse(CourseInfoVo courseInfoVo);

    Map<String, Object> queryCourseVo(String id);

    ResultVo pages(CourseQuery courseQuery);

    int updateIsDelete(String id);

    ResultVo pageCourse(Integer pageNum, Integer rows, CourseFrontVo courseFrontVo);

    int updateViewsCount(String id);

    Integer queryCreateCount(String day);
}
